package com.liezh.state;

/**
 * @author liezh
 * @date 2021-10-29
 */
public class WarehouseProcessingState implements PackageState {
    private static WarehouseProcessingState instance = new WarehouseProcessingState();
    private WarehouseProcessingState() {
    }
    public static WarehouseProcessingState instance() {
        return instance;
    }

    @Override
    public void updateState(PackageContext context) {
        System.out.println("=== state start...");
        System.out.println("2 - Package is WarehouseProcessing");
        context.setCurrentState(InTransitionState.instance());
    }
}
